﻿using Admin2024.Domain.Entity.System;
using Admin2024.Domain.ObjValue;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;

namespace Admin2024.Domain.IDomainService.System.IUserService
{
    public interface IJwtService
    {
        string GenerateToken(AppUser user, string rolename);

        JwtSecurityToken ValidateToken(string token);

        Task<AppUser> GetUserIdFromToken(string token);

    }
}
